package com.jiawa.wiki.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiawa.wiki.entity.Employees;
import com.jiawa.wiki.service.IEmployeesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author huang
 * @since 2021-04-17
 */
@RestController
@RequestMapping("/wiki/employees")
public class EmployeesController {
    @Autowired
    IEmployeesService employeesService;

    @GetMapping
    public Page<Employees> index(){
        Page<Employees> page = new Page<>(1,10);
        Page<Employees> page1 = employeesService.page(page);
        return page1;
    }

}

